import requests

r = requests.get("https://www.baidu.com", params={"wd": "python", "xx": "100"})
print(r.url)

url = "https://www.baidu.com?wd=%s&xxx=dddd" % "python"
r = requests.get(url=url)

print(r.url)
